package com.cpd.blog.common.utils;

import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.core.util.UuidUtil;

/**
 * @Author: Copydown
 * @Date: 2022/05/06/22:15
 */
public class GenerateUtil {

    public static String genUuidSize6() {
        return StringUtils.substring(UuidUtil.getTimeBasedUuid().toString(), 0, 6);
    }

    public static String genSaltSize5() {
        return StringUtils.substring(UuidUtil.getTimeBasedUuid().toString(), 0, 5);
    }

}
